#!/usr/bin/bash 


# 
memory_used=$(free -m | grep '^Mem:' | awk '{print $3}')
memory_total=$(free -m | grep '^Mem:' | awk '{print $2}')
memory_percent=$((memory_used*100/memory_total))


echo "当前内存使用百分比：${memory_percent}"